package org.chen.boot.listener;


import org.chen.spring.core.annotation.Component;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @author Chen
 * @since 2023/6/8 9:12
 */

@WebListener
@Component
public class WebServletContextListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("WebServletContextListener.contextInitialized");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("WebServletContextListener.contextDestroyed");
    }
}
